package org.paysim.constant;

public enum ResponseMessage {
    SUCCESS(200, "操作成功"), BAD_REQUEST(400, "请求参数错误"), NOT_FOUND(404, "资源未找到"), INTERNAL_SERVER_ERROR(500, "服务器内部错误");

    private final int code;
    private final String message;

    ResponseMessage(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
